package com.wn.budget.service.MaterialDepot;

import com.wn.budget.model.MaterialDepot;
import com.wn.budget.repository.MaterialDepotRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

@Service
public class MaterialDepotService {
    @Autowired
    MaterialDepotRepository materialDepotMapper;

    public Page<MaterialDepot> select(int pageIndex, int pageSize) {
        Page<MaterialDepot> list = materialDepotMapper.findAll(PageRequest.of(pageIndex, pageSize));
        return list;
    }
}
